
define(['text!templates/diary_template.html'
],function(DiaryTemplate){

	var diary_view = Backbone.View.extend({
						
		initialize: function(){
			this.template= _.template(DiaryTemplate,this.model.toJSON());
		},
		render: function() {
			$(this.el).html(this.template);
			console.log("stampato render");
		}		
	});
	
	return diary_view;
	
});
